package com.tsingteng.cosfun.callback;

import com.tsingteng.cosfun.bean.JoinCostarBean;
import com.tsingteng.cosfun.bean.OpusBean;
import com.tsingteng.cosfun.ui.costar.CostarActivity;

import java.util.ArrayList;

/**
 * 描述:通用回调
 * 创建人: 肖利
 * 时间: 2018/7/31
 * qq: (872179966)
 */

public class AppListener {
    public static AppListener appListener;
    private AppListener() {
    }
    public static AppListener getInstance() {
        if (appListener ==null) {
            synchronized (AppListener.class) {
                if (appListener ==null) {
                    appListener = new AppListener();
                }
            }
        }
        return appListener;
    }

    /**
     * 全局视屏发布监听
     */
    private OnPublishVideoBackListener onPublishVideoBackListener;
    public interface OnPublishVideoBackListener {
        void OnVideoBack(OpusBean opusBean);
    }
    public void setOnPublishVideoBackListener(OnPublishVideoBackListener onPublishVideoBackListener) {
        this.onPublishVideoBackListener = onPublishVideoBackListener;
    }

    public OnPublishVideoBackListener getOnPublishVideoBackListener() {
        return onPublishVideoBackListener;
    }

    /**
     * 去首页监听
     */
    private OnToMainActivityListener onToMainActivityListener;
    public interface OnToMainActivityListener {
        void OnVideoToMain();
    }

    public void setOnToMainActivityListener(OnToMainActivityListener onToMainActivityListener) {
        this.onToMainActivityListener = onToMainActivityListener;
    }

    public OnToMainActivityListener getOnToMainActivityListener() {
        return onToMainActivityListener;
    }

    /**
     * 去首页监听
     */
    private OnToFoundActivityListeners onToFoundActivityListeners;
    public interface OnToFoundActivityListeners {
        void OnVideoToFound();
    }

    public void setOnToFoundActivityListeners(OnToFoundActivityListeners onToMainActivityListener) {
        this.onToFoundActivityListeners = onToMainActivityListener;
    }

    public OnToFoundActivityListeners getOnToFoundActivityListeners() {
        return onToFoundActivityListeners;
    }
    private OnRefreshBackListener onRefreshBackListener;
    public interface OnRefreshBackListener {
        void OnReresh(String isBroad);
    }
    public void setOnRefreshBackListener(OnRefreshBackListener onBackListener) {
        this.onRefreshBackListener = onBackListener;
    }

    public OnRefreshBackListener getOnRefreshBackListener() {
        return onRefreshBackListener;
    }
    /**
     * 评论总数
     */
    private OnCommentTotalListener listener;
    public interface OnCommentTotalListener{
        void onCommonet(String total);
    }
    public void setCommentTotalListener(OnCommentTotalListener mTotallistener){
        this.listener = mTotallistener;
    }

    public OnCommentTotalListener getCommentTotalListener() {
        return listener;
    }
    /**
     * 分享总数
     */
    private OnShareTotalListener mShareTotalListener;
    public interface  OnShareTotalListener{
        void onShareTotal(String shareTotal);
    }
    public void setOnShareTotalListener(OnShareTotalListener mListener){
        this.mShareTotalListener = mListener;
    }

    public OnShareTotalListener getmShareTotalListener() {
        return mShareTotalListener;
    }
    /**
     * 是否关注
     */
    private OnFocusBackListener focusBackListener;
    public interface OnFocusBackListener{
        void onFocusBack(String focus);
    }
    public void setOnFocusBackListener(OnFocusBackListener onFocusBackListener){
        this.focusBackListener = onFocusBackListener;
    }

    public OnFocusBackListener getFocusBackListener() {
        return focusBackListener;
    }
    /**
     * 不关注
     */
    private OnNoFollowBackListener noFollowBackListener;
    public interface OnNoFollowBackListener{
        void onNoFollowBack();
    }
    public void setOnNoFollowBackListener(OnNoFollowBackListener listener){
        this.noFollowBackListener = listener;
    }

    public OnNoFollowBackListener getNoFollowBackListener() {
        return noFollowBackListener;
    }
    /**
     * 关注
     */
    private OnAttentFocusBackListener onAttentFocusBackListener;
    public interface OnAttentFocusBackListener{
        void onAttentBack();
    }
    public void setOnAttentFocusBackListener(OnAttentFocusBackListener listener){
        this.onAttentFocusBackListener = listener;
    }

    public OnAttentFocusBackListener getOnAttentFocusBackListener() {
        return onAttentFocusBackListener;
    }
    /**
     * FocusOpus
     */
    private OnFocusOpusBackListener onFocusOpuslistener;
    public interface OnFocusOpusBackListener{
        void onFocusOpusBack();
    }
    public void setOnFocusOpuslistener(OnFocusOpusBackListener listener){
        this.onFocusOpuslistener = listener;
    }
    public OnFocusOpusBackListener getOnFocusOpuslistener() {
        return onFocusOpuslistener;
    }
}
